package com.nowcoder.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ljl
 * @projectname nowcoder
 * @filename MybatisPlusConfig
 * @date 2021-11-23 16:20
 **/
@Configuration
@MapperScan("com.nowcoder.mapper")
public class MybatisPlusConfig {

    //分页插件
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
